/* * Author: Chris Seguin * * This software has been developed under the copyleft * rules of the GNU General Public License. Please * consult the GNU General Public License for more * details about use and distribution of this software. */ package org.acm.seguin.uml; import java.awt.event.ActionEvent; import javax.swing.JMenuItem; import javax.swing.JPopupMenu; import org.acm.seguin.metrics.PackageMetricsFrame; import org.acm.seguin.summary.PackageSummary; /** * Create a mouse listener for a package or a field or a title * *@author Chris Seguin *@created July 27, 1999 */ public class PackageMetricsListener extends PopupMenuListener { // Instance Variables private PackageSummary packageSummary; /** * Constructor for the PackageMetricsListener object * *@param panel Description of Parameter *@param initMenu Description of Parameter *@param initItem Description of Parameter */ public PackageMetricsListener(UMLPackage panel, JPopupMenu initMenu, JMenuItem initItem) { super(initMenu, initItem); packageSummary = panel.getSummary(); } /** * A menu item has been selected * *@param evt Description of Parameter */ public void actionPerformed(ActionEvent evt) { super.actionPerformed(evt); new PackageMetricsFrame(packageSummary); } }